<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>BrightVision CMS</title>
<link rel="stylesheet" href="<?php echo $this->TEMPLATE_DIR; ?>resources/stylesheets/cmssheet.css" type="text/css" />
<!--[if lt IE 7]>
<script defer type="text/javascript" src="<?php echo $this->TEMPLATE_DIR; ?>resources/scripts/pnfgix.js"></script>
<![endif]-->
</head>
<body>
<div align="center">
	<div id="wrap"> 
    	<div id="head">
        	<div class="right"><!--<a href="#"><img src="<?php echo $this->TEMPLATE_DIR; ?>resources/images/icons/logout.png" /></a>--></div>
        </div>
        <div id="main">
        	<div class="contentTop"></div>
            	<div class="content">
            		<div class="top">
                    	<!--<div class="left"><p>Du skal logge ind for at se dit kontrolpanel</p></div>
                        <div class="right"><p><a href="#">Log ind</a></p></div>-->
                    </div>
                    <div class="mid">
                    	<h1>Du skal logge ind for at se dit kontrolpanel</h1>
                    	<form method="post" action="?action=Login">
	                        <table align="center" cellpadding="15" class="tableMenu">
	                            <tr valign="top">
	                            	<td align="left">Brugernavn:</td>
	                            	<td align="left"><input type="text" name="username" value="<?php echo $_POST['username']; ?>" /></td>
	                            </tr>
	                            <tr valign="top">
	                            	<td align="left">Kodeord:</td>
	                            	<td align="left"><input type="password" name="password" /></td>
	                            </tr>
	                            <tr valign="top">
	                            	<td colspan="2">
	                            		<input type="submit" name="login" value="Log ind" /><br />
	                            		<i><a href="?action=Recover">Glemt kodeord?</a></i>
	                            	</td>
	                            </tr>
	                            <?php
	                            
	                            if(count($this->errors, COUNT_NORMAL) > 0)
	                            {
	                            	echo "<tr valign=\"top\">";
	                            	echo "<td colspan=\"2\" align=\"left\">";
	                            	echo "Følgende fejl forekom under login-processen:";
	                            	echo "<ul>";
	                            	
	                            	foreach ($this->errors as $error)
	                            	{
	                            		echo "<li>$error</li>\n";
	                            	}
	                            	
	                            	echo "</ul>";
	                            	echo "</td>";
	                            	echo "</tr>";
	                            }
	                            
	                            ?>
	                        </table>
	                	</form>
                    </div>
                </div>
            <div class="contentBot"></div>
      </div>
        <div id="foot">
        	<p>BrightVision I/S | Henrik Ibsens Vej 32, 1813 Frederiksberg C | +45 36 96 78 57 | <a href="mailto:info@brightvision.dk">info@brightvision.dk</a></p>
        </div>
    </div>
</div>
</body>
</html>
